package com.chain.qs.modules.biz.entity;

import com.chain.qs.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.Date;

/**
 * 班次设置Entity
 */
public class Handover extends DataEntity<Handover> {
    private static final long serialVersionUID = 1L;
    private int leastPeople;
    private int bufferTime;
    private int isActive = 0;//0:未启用,1:已启用
    private int isDel = 0;//是否已删除(0:未删除,1:已删除)

    private String name1;
    private String name2;
    private String name3;

    private Date stime1;
    private Date stime2;
    private Date stime3;

    private Date etime1;
    private Date etime2;
    private Date etime3;

    private Date createTime;

    private ArrayList<TimeRange> timeRangeList;

    @Range(min = 1, max = 150 ,message = "最少值班人数必须在1-3人间!")
    public int getLeastPeople() {
        return leastPeople;
    }

    public void setLeastPeople(int leastPeople) {
        this.leastPeople = leastPeople;
    }

    @Range(min = 1, max = 60 ,message = "缓冲时间必须在1-60分钟内!")
    public int getBufferTime() {
        return bufferTime;
    }

    public void setBufferTime(int bufferTime) {
        this.bufferTime = bufferTime;
    }

    public int getIsActive() {
        return isActive;
    }

    public void setIsActive(int isActive) {
        this.isActive = isActive;
    }

    public int getIsDel() {
        return isDel;
    }

    public void setIsDel(int isDel) {
        this.isDel = isDel;
    }

    public ArrayList<TimeRange> getTimeRangeList() {
        return timeRangeList;
    }

    public void setTimeRangeList(ArrayList<TimeRange> timeRangeList) {
        this.timeRangeList = timeRangeList;
    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public String getName2() {
        return name2;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }

    public String getName3() {
        return name3;
    }

    public void setName3(String name3) {
        this.name3 = name3;
    }

    @NotNull
    public Date getStime1() {
        return stime1;
    }

    public void setStime1(Date stime1) {
        this.stime1 = stime1;
    }

    @NotNull
    public Date getStime2() {
        return stime2;
    }

    public void setStime2(Date stime2) {
        this.stime2 = stime2;
    }

    @NotNull
    public Date getStime3() {
        return stime3;
    }

    public void setStime3(Date stime3) {
        this.stime3 = stime3;
    }

    public Date getEtime2() {
        return etime2;
    }

    public void setEtime2(Date etime2) {
        this.etime2 = etime2;
    }

    public Date getEtime1() {
        return etime1;
    }

    public void setEtime1(Date etime1) {
        this.etime1 = etime1;
    }

    public Date getEtime3() {
        return etime3;
    }

    public void setEtime3(Date etime3) {
        this.etime3 = etime3;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
